<template>
  <div class="body_box background-style1">
    <h1 class="title text-eng1">lifeHelper</h1>
    <div class="container_login">
      <div class="model-button">
        <div class="button" @click="offlineLogin">离线</div>
        <div class="button">在线</div>
      </div>
      <antLogin />
    </div>
  </div>
</template>

<script setup>
import { ref } from "vue";
import { useRouter } from "vue-router";
import antLogin from "@/components/ant-component/ant-form-login/index.vue";
const router = useRouter();
const offlineLogin = () => {
  console.log("offlineLogin");
  router.push("/home");
};
</script>

<style lang="scss" scoped>
.body_box {
  padding: 0;
  margin: 0;
  overflow: hidden;
  //   width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  // background-color: #4e86a0;
  font-family: "Lines";
  .title {
    width: 19.875rem;
    height: 2.25rem;
    text-align: center;
    margin: 0 1.5625rem 2.5rem 0;
  }
  .container_login {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 32.1875rem;
    height: 32.125rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

    .model-button {
      display: flex;
      justify-content: space-between;
      width: 100%;
      height: 2.5rem;
      .button {
        width: 50%;
        height: 2.5rem;
        background: radial-gradient(circle, #8b8b8b, #333333);
        // background-color: #7c3aed;
        text-align: center;
        line-height: 2.5rem;
        border: 0px solid #7c3aed;
        // border-radius: 0.625rem;
      }
    }
  }
}
</style>
